package com.ithema;

public class zuoye {
    public static void main(String[] args) {
        int count=0;
        for (int num=1;num<=100;num++){
            int ge=num%10;
            int shi=num/10%10;
            if ((ge==9)||(shi==9)){
                continue;
            }else {
                count++;
                System.out.print(num+" ");
                if (count%5==0){
                    System.out.println();
                }
            }
        }
    }
}
